package com.test.sort;

import com.google.common.base.Joiner;

import java.util.ArrayList;
import java.util.List;

public class SubListDemo {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        int num = 100;
        for (int i = 0; i < 100; i++) {
            list.add("item_" + i);
        }
        System.out.println(list.size());
        System.out.println(list.get(num - 1));
        System.out.println(Joiner.on(",\n").join(list.subList(0, num)));
    }
}
